-- GENERATED SPELL FOR [Den Vermin] --


function spell0_24567(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_24567', 551, 1)
end

function Sorts_24567(pUnit, Event)
local choix_sorts_24567 = math.random(0, 0)
if choix_sorts_24567 == 0 then
pUnit:RegisterEvent('spell0_24567', 1, 1)
end
end

function mob24567_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24567', math.random(1500, 3000), 1)
end

function mob24567_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24567_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24567_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24567, 1, 'mob24567_Action')
RegisterUnitEvent(24567, 2, 'mob24567_Leave')
RegisterUnitEvent(24567, 3, 'mob24567_Kill')
RegisterUnitEvent(24567, 4, 'mob24567_Die')
